﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class OrderCart_OrderCart : System.Web.UI.Page
{
    private string _backurl;
    public string BackUrl
    {
        set { _backurl = value; }
        get { return _backurl; }
    }
    protected void Page_PreInit(object sender, EventArgs e)
    {
        Page.Theme = BLL.Common.GetWSThemes();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Page.Title = BasePage.WebTitle;
        if (!HttpContext.Current.User.Identity.IsAuthenticated)
        {
            Response.Redirect("../Users/Login.aspx");            
        }
        if (!IsPostBack)
        {
            if (Request.UrlReferrer != null)
            {
                BackUrl = Request.UrlReferrer.ToString();
            }
        }
        Session["Step"] = "1";
        if (Session["Transport"] != null)
        {
            Session["Transport"] = null;
        }
        if (Session["PayMethod"] != null)
        {
            Session["Transport"] = null;
        }
    }
}
